package pe.candyncoffee.mytrace;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class Receiver extends Thread{
	private Boolean runningMessageReceiver = true;
	public enum MSGTYPE{
		ARTICLE_LIST, ARTICLE, MARKER_LIST, MESSAGE
	}
	public void Stop(){
		runningMessageReceiver = false;
	}
	public void run(MSGTYPE mType){
		String sender;
		String Message;
		
		while (runningMessageReceiver){
			InputStream is = new InputStream() {
				@Override
				public int read() throws IOException {
					// TODO Auto-generated method stub
					return 0;
				}
			};
			InputStreamReader isr = new InputStreamReader(is);
			BufferedReader br = new BufferedReader(isr);
			
			//br.read();
			
			switch (mType){
			case ARTICLE_LIST:

				break;
			case ARTICLE:
				break;
			case MARKER_LIST:
				break;
			case MESSAGE:
				break;
			}
		}
	}
}
